package com.woniu.service;

import com.woniu.entity.Employee;
import com.woniu.util.ResponseUtil;
import java.util.Date;

public interface EmployeeService  {
    ResponseUtil delete(Integer employeeId);
    ResponseUtil add(Employee employee);
    ResponseUtil findByEmployeeId(Integer employeeId);
    ResponseUtil update(Employee employee);
    ResponseUtil findAll();

    // ----------------- 以下是新增的方法 -----------------
    /**
     * 动态条件查询员工
     */
    ResponseUtil findWithConditions(
            String name,
            String gender,
            Integer deptId,
            Date beginDate,
            Date endDate
    );
}